
#include <iostream>


#include "pam_srp.hpp"


using namespace std;
using namespace pam_srp;


int main(int argc, char *argv[])
{
    const char *username  = "foo";
    const char *password  = "blah";
    bool        is_password_expired = true;
    SRPSettings settings;
    
    try
    {
        settings.parse_file("settings_test.ini");
        
        authenticate_from_network( settings,
                                   username, password,
                                   is_password_expired );
    

        cout << "AUTHENTICATED!" << endl;

        cout << "Password is expired: " << is_password_expired << endl;
    
    }
    catch( SRPError & e )
    {
        cerr << "SRPError: " << e.what() << endl;
    }        

    return 0;
}

